package com.foreverwin.jzymes.framework.quartz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.framework.quartz.mapper.SysJobParamMapper;
import com.foreverwin.jzymes.framework.quartz.domain.SysJobParam;
import com.foreverwin.jzymes.framework.quartz.service.ISysJobParamService;

/**
 * 点检任务记录 服务层实现
 * 
 * @author ervin
 * @date 2019-04-25
 */
@Service
public class SysJobParamServiceImpl implements ISysJobParamService
{
	@Autowired
	private SysJobParamMapper sysJobParamMapper;

	/**
     * 查询点检任务记录信息
     * 
     * @param handle 点检任务记录ID
     * @return 点检任务记录信息
     */
    @Override
	public SysJobParam selectSysJobParamById(String handle)
	{
	    return sysJobParamMapper.selectSysJobParamById(handle);
	}
	
	/**
     * 查询点检任务记录列表
     * 
     * @param sysJobParam 点检任务记录信息
     * @return 点检任务记录集合
     */
	@Override
	public List<SysJobParam> selectSysJobParamList(SysJobParam sysJobParam)
	{
	    return sysJobParamMapper.selectSysJobParamList(sysJobParam);
	}
	
    /**
     * 新增点检任务记录
     * 
     * @param sysJobParam 点检任务记录信息
     * @return 结果
     */
	@Override
	public int insertSysJobParam(SysJobParam sysJobParam)
	{
	    return sysJobParamMapper.insertSysJobParam(sysJobParam);
	}
	
	/**
     * 修改点检任务记录
     * 
     * @param sysJobParam 点检任务记录信息
     * @return 结果
     */
	@Override
	public int updateSysJobParam(SysJobParam sysJobParam)
	{
	    return sysJobParamMapper.updateSysJobParam(sysJobParam);
	}

	/**
     * 删除点检任务记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteSysJobParamByIds(String ids)
	{
		return sysJobParamMapper.deleteSysJobParamByIds(ids.split(","));
	}
	
}
